package com.muyu.danmo.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 保证金对象 danmo_gallery_guarantees
 *
 * @author yangle
 * @date 2024-10-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoGalleryGuarantees extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 保证金记录的唯一标识符（主键） */
    private Long id;

    /** 用户ID（外键，关联到用户表） */
    @Excel(name = "用户ID", readConverterExp = "外=键，关联到用户表")
    private Long userId;

    /** 保证金金额 */
    @Excel(name = "保证金金额")
    private String amount;

    /** 作品id */
    @Excel(name = "作品id")
    private Long workId;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidDate;

//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setUserId(Long userId)
//    {
//        this.userId = userId;
//    }
//
//    public Long getUserId()
//    {
//        return userId;
//    }
//    public void setAmount(String amount)
//    {
//        this.amount = amount;
//    }
//
//    public String getAmount()
//    {
//        return amount;
//    }
//    public void setWorkId(Long workId)
//    {
//        this.workId = workId;
//    }
//
//    public Long getWorkId()
//    {
//        return workId;
//    }
//    public void setPaidDate(Date paidDate)
//    {
//        this.paidDate = paidDate;
//    }
//
//    public Date getPaidDate()
//    {
//        return paidDate;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("amount", getAmount())
            .append("workId", getWorkId())
            .append("paidDate", getPaidDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
